Create Database code