Use path for creating sessions, store fileid to db