Added authentication and connection to localhost database