updated to connect with new database