Split database setup into two files