fixed devotees & database connection