add UNIQUE constraints
fighting with .idea garbage
some db routine
idea garbage