added database insert queries