Fixed database for 3rd time, Program working mostly