Added sql statements to add tags
can add tags to images
added more assumption