parametrized query for tables, fixing registration and others messages screens, closes #2 closes #1