fix db

mysql and pg do implicit indexes, that needs to be specified.