Fixed database access for sms_server.py and added skeletal manage.py