final for the night

Still have the database issue, tried making a different function to
connect. Got too tired to continue started seeing elephants in the code
so putting a rest on it for now.