basic db entry working, need to fix bugs