limit db queries properly
configure each configuration UGHGHHGHGHGH