save record to db

added script saving record to mysql db. credentials for database are
stored outside of web root folder and named cred.php. in this file are
credentials for db connect as username, password and dbname