Added Database SQL code