some database stuff - start to add photos into database