remove all the service logic and database logic to core module and replace datasource with jdbc template