Fixed database connection bugs.
Removed "known" variable from templates, cleaned format.
Created bin directory and moved requirements there.
mend
Added a SQLite test database with appropriate tables.