Rewrite so this is based off theasci/mysql