added verbosity to database manager, implemented MAX() operation to get last id