Added getTicketsById functionality

Database is still empty though