Migrate api module settings to database