Updated sql

Putting info in the database