Setup db, migrations, classes for threads and users