Marking as deprecated some functions in Database.
Moving SQL queries into subfolders.