now it connects to db