fine adding added, moved functions out of main to database
Began payment process