add tab from friends button javascript functionality
simplified database querying with database-manager
added database-manager to simplify querying