Working with DB.
Made version 1 of script