Database didn't set up correctly on fisrt start and useless checkings.

This reverts commit 24ef8d1aa2af124a01e82c52e0b6c9a43d0e28d3.