Databases functions and validations...