init db in compile time