Should now be better for checking if mysql connection is open
Started a rewrite to change hardcoded stuff to optional. Not done. Want to make feast optional..