get pictures randomly from db, work in progress

get pictures randomly from db, work in progress