get pictures from db, work in progress

get pictures from db