Remove use of define() in Database class and add empty() function.