issues #271 and #272 - created tbl_entry and fixed db name in scripts