Database fixed for use with mysql