Made contract constants for column and table names

Replaced all literal occurences of the table/column names by the constants