added connection to database, still needs testing