Changed some database types and added LoginKey