Added Database setup, reduce the sleep value

Simple patch to add database tests to travis-ci.