You can find pretty much all you need in the wiki here:
DB Schema List - Has links to pages for many of the tables
http://www.eqemulator.net/wiki/wikka...DatabaseSchema
Below are the 3 tables you need to add entries to for making factions. The info in them should be enough to explain how it works. If you still don't understand, you can look at existing examples that are in these tables and how they were setup.
Faction Lists
http://www.eqemulator.net/wiki/wikka...emafactionlist
NPC Faction
http://www.eqemulator.net/wiki/wikka...hemanpcfaction
NPC Faction Entries
http://www.eqemulator.net/wiki/wikka...factionentries