Thanks for the help guys, i'll try your suggestions when i get a chance. Jon.
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных