Add initialize DB function.