Added a lot of database files and code