Capified and changed db to mysql