Improved Database.java

Added PreparedStatments for preventing SQLInjection.
Added function for checking for valid Login credentials, returns true on
success / false on failure.