Updated thoth
Database access fix