Improv erors views
Delete useless code for database connection