actually connecting to database