Fix problem with insert not working

needed to commit the executed query
Both profiles can now be voted for

javascript janitorial work
Test Driven, tests for likes and dislikes

tests developed before the code
implemented the dislikes and created a photo table

this implements the tests created before this