Add unique keys to tables
Add main database connection
Working repo syncing