Major fix on database, models, tables. PostgreSQL support

Added "tbl_" prefix on every table, avoiding the conflict with sql keywords
Test on all models, passed