Database SQL

Answer for database part