Added Database SQL code from class