added Database functionality [register guest]