started implementation of filedatabase (only copied tempdatabase so far..)