mysql tables added
comment about foreign keys
readme update
avoid undef values
passing type and alg