Refactor AgDb

Rename functions and type names so they are clearly related to charts.
This is required to implement display theme manipulation in the database.
Add enum <=> nick conversion functions

They are for planets, aspects and antiscia
Move used planets’ list to used_planets global array

This makes it easier to add new planets. A way should still be found to
automatically include related files in the default chart.