fix deadlock on break
int to bool return
update file table calls
absolute path namechange
queries by post id, movng away from filepath key
added logging
updated rename file
added errorcodes and logign