ajaxFunctions.js added to index

UserDB functions added
Query methods in DB classes returns ResultSet now
UserLogic methods added