database arg was wrong in secdatabase constructor