fix connection with username and password - use database