updated some syntax, created a package for the database