Made changes

for class
database change

from sql to postgres