created a class to validate urls

moved database connection to config.ru and spec_helper.rb

Signed-off-by: Bebe Peng <bebepeng@gmail.com>
added sequel migration

Signed-off-by: Bebe Peng <bebepeng@gmail.com>