Init database structure