User binding; session tidy up; db tidy up