some database stuff - not going to store images in database i think