Changed the SchmaName from table to database