Work on select from db