added functions to index.js

added get username via a session id
added delete a user from the sessions table