established localhost db connection and basic initializer