Add basic authentication method and connect to DB