Fix saving data more than once in db

 - add new folder functional_test
 - rename functional_test.py as tests.py and move it to FT folder