started to rewrite, removed dependecy on shell/Perl
resulting a fictive number for free files and free blocks for now
added test cases
removed function.sql