Implement DB connection in LoginActivity