Added SQL Database Queries

Replaced packages.php with database queries.
Also added non-functioning admin styles.