fixed data type mistakes and added postgresql as supported database