getting from database now works