rewrite auth task
task and db manager stuff
Database stuff