fixed database read/write and last.fm .np module