Fixed links and setup mysql