Implemented prepared statements and properly closed connections without spawning errors to the ocnsole
Merge branch 'images'