added functions to index.js

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

branch test
Revert "merged testbranch"

This reverts commit 58b0db67c91f83f70e4c6cf338ccb74f0f4feff9.