connects to database