Add MySQL
Move redis code to separate file