versionwithsql

this version with sql-database