fix app database configuration and wercker database configuration