got database connections working