Remove unused meta on cmd-fn in alias
Replace random printlns with actual logging
Write logs to db