move database config to properties file