fixed database info insertion, added more config options, some small edits