Setting up connection manager and database settings