work on database classes + tests
tests for textValidate added