Backend work

Created tables and necessary files to access database. Renamed
training.php to pretask.php