Implements the 'import library' option
Adds some database manipulation functions