small update.

found a small issue in the sqlite script. finished making scan
functional. configured openpage to work with scan properly. and added
new constructors to Package. The new ones allow making a package that
will be sent to the database immideately.