separate database bootstrap code