Connect to DB and try to insert objects