Fixed error_log printing and db_setup bug