Adapting project to work with mysql