update to make connection to db work