move database configuration & activemq configuration to config file