Handle api keys in admin interface
Fix missing fk in resources