Database create and insert working