Managed to connect to database