Changed insert to Database due to problems with postgresql.