package.json and database functions and test