Fixed database() type, because calling list_to_atom() makes me feel all icky inside.