Moved db engine to secrets
Added loads of tests and some bugfixes
started testing auth views