set localhost database connection