added the database sql