Correct variable name error and function call error.
Correct path error
When creating a new site for sync #375, it is unusefull to init the database.
Add script to sync site as described in #375