WIP adding bind/mysql

Almost done, need to test and fix a couple small bugs