[api] migrate more configs into database

(no suprise we didn't see any exceptions on errbit)
[api] remove duplicated test and fix one (invalids are 400 and not 404)